<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%
	boolean error = (null==session.getAttribute("error"))? false : Boolean.parseBoolean(session.getAttribute("error").toString());
	String login = (null==session.getAttribute("login"))?"":(String)session.getAttribute("login");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@include file="headers.jsp" %>

<title>Login</title>
</head>
<body>

<br />
<br />
<br />
<form action="<%=request.getAttribute("servletUrl") %>/user_login" method="post" class="well" style="text-align:left; width:250px; margin:auto" id="adminLoginForm">
	<div class="bold">Login</div><input type="text" name="login" value="<%=login%>"/><br/>
	<div class="bold">Mot de passe</div><input type="password" name="password"/><br/>
	<input type="submit" class="btn btn-primary" title="Envoyer" name="submit" value="Se Connecter"/>
	<% if (error) {
	      out.println("<p class=\"error\">Erreur lors de votre connexion, login ou mot de passe incorrect</p>");
	   }%>
</form>
</body>
</html>